from django.db.models import Model, DateTimeField, CharField, IntegerField

class BaseModel(Model):
    """所有DB Model 的基类"""

    create_time = DateTimeField(auto_now_add = True, null = True)
    update_time = DateTimeField(auto_now = True, null = True)
    create_user_keyid = CharField(max_length = 36, null = True)
    update_user_keyid = CharField(max_length = 36, null = True)
    version = IntegerField()

    class Meta:
        abstract = True


